<h2 align="center" class="ourCompany-hdr"><%=  t('event.edit')%></h2>

<script type="text/javascript" src="/javascripts/dhtmlgoodies_calendar.js"></script>
<link href="/stylesheets/dhtmlgoodies_calendar.css" rel="stylesheet" type="text/css" />



<% form_for(@event) do |f| %>
  <%= f.error_messages %>

 <table width="200" border="0" cellspacing="2" cellpadding="2">
	      <tr>
                <th align="left" scope="row"><img src="/images/events.png" width="32" height="32" /></th>
	        <th align="left" nowrap="nowrap"><%=  t('event.even')%> :</th>
	        <td> <%= f.text_field :name %></td>
        </tr>
	      <tr>
	        <th align="left" scope="row">&nbsp;</th>
	        <th align="left" nowrap="nowrap"><%=  t('event.winner')%>:</th>
	        <td><%= f.text_field :winner %></td>
        </tr>
	      <tr>
	        <th align="left" scope="row">&nbsp;</th>
	        <th align="left" nowrap="nowrap"><%=  t('event.Sdate')%>:</th>
	        <td><%= f.text_field :date_ini,:readonly => true %></td>
                <td>
    <a href="#" onClick="displayCalendar(document.getElementById('event_date_ini'),'yyyy-mm-dd',this)"><img src="/images/calendar.png"></img></a>
                </td>
        </tr>
	      <tr>
	         <th align="left" scope="row">&nbsp;</th>
	        <th align="left" nowrap="nowrap"><%=  t('event.Fdate')%>:</th>
	        <td><%= f.text_field :date_fin,:readonly => true %></td>
                <td>
    <a href="#" onClick="displayCalendar(document.getElementById('event_date_fin'),'yyyy-mm-dd',this)"><img src="/images/calendar.png"></img></a>
                </td>
        </tr>

        <tr>
	        <th align="left" scope="row">&nbsp;</th>
	        <th align="left" nowrap="nowrap"><%=  t('event.categ')%></th>
	        <td><input disabled value="<%=@category.name%>" id="a" name="a"/></td>

        </tr>

        <tr>

	      <th align="left" scope="row">&nbsp;</th>
	        <th align="left" nowrap="nowrap"><%=  t('event.admin')%>:</th>
                <td><input disabled value="<%=@administrator.name%>" id="a2" name="a2"/></td>
	        <td><%= link_to image_tag("/images/back.png", :title => t('event.back'), :border=>0), events_path %></td>
                <td><%= image_submit_tag("/images/update.png", :title => t('event.edit'), :border=>0) %></td>
        </tr>
        <td><%= f.hidden_field :administrator_id %></td>
        <td><%= f.hidden_field :category_id %></td>
      </table>
<% end %>